<?php
	class FollowersCount extends AppModel {
		public $useTable = 'followers_count';

		function getDaily($accID) {

			$followers = $this->find('all', array(
			'conditions' => array('account_id' => $accID),
			'limit' => '168',
			'fields' => 'count',
			'order' => 'query_time DESC'
			));

			$result = array($followers[0]['FollowersCount']['count'], $followers[1]['FollowersCount']['count'], 
				$followers[2]['FollowersCount']['count'],$followers[3]['FollowersCount']['count'],
				$followers[4]['FollowersCount']['count'],$followers[5]['FollowersCount']['count'],
				$followers[6]['FollowersCount']['count']);

			// $result = array($followers[0]['FollowersCount']['count'], $followers[24]['FollowersCount']['count'], 
			// 	$followers[48]['FollowersCount']['count'],$followers[72]['FollowersCount']['count'],
			// 	$followers[96]['FollowersCount']['count'],$followers[120]['FollowersCount']['count'],
			// 	$followers[144]['FollowersCount']['count']);

			return $result;
		}
	}